package com.sky.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Data
@ApiModel(description = "接收修改密码参数模型")
public class PasswordEditDTO implements Serializable {

    //员工id
    @ApiModelProperty("被修改的员工id")
    @Min(value = 1, message = "id格式不正确")
    private Long empId;

    //旧密码
    @ApiModelProperty("旧密码")
    @NotBlank
    private String oldPassword;

    //新密码
    @ApiModelProperty("新密码")
    @NotBlank
    private String newPassword;

}
